package com.example.takeaway.model.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜品规格表
 * </p>
 *
 * @author 邢晨旭
 * @since 2023-10-12
 */
@Getter
@Setter
@TableName("dish_item_specification")
public class DishItemSpecification extends BaseBO {

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜品ID（关联`dish`表）
     */
    @TableField("dish_id")
    private Long dishId;

    /**
     * 规格ID（关联`specification`表）
     */
    @TableField("specification_id")
    private Long specificationId;
}
